package com.his.entity;

import com.his.common.Const;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import java.io.Serializable;
import java.util.Date;

/**
 * (Nursing)实体类
 *
 * @author makejava
 * @since 2020-10-23 18:13:29
 */
@Data
public class Nursing implements Serializable {
    private static final long serialVersionUID = 807362781102775981L;
    /**
     * 主键
     */
    @NotNull(message = "主键不能为空",groups = {Const.Update.class})
    private Integer id;
    /**
     * 病人id
     */
    @NotNull(message = "病人不能为空",groups = {Const.Update.class, Default.class})
    private Integer patientId;

    private String patientName;

    private String nursingName;

    private String nurseName;
    /**
     * 护士id
     */
    @NotNull(message = "护士主键不能为空",groups = {Const.Update.class})
    private Integer nurseId;
    /**
     * 床位id
     */
    private String bedId;
    /**
     * 护理项目id
     */
    @NotNull(message = "请选择护理项目")
    @NotNull(message = "护理类别不能为空",groups = {Const.Update.class})
    private Integer nursingCategoryId;
    /**
     * 病人状态
     */
    @NotBlank(message = "病人状态不能为空",groups = {Const.Update.class})
    private String patientStatus;
    /**
     * 护理状态
     */
    private String nursingStatus;
    /**
     * 护理时间
     */
    private Date nursingTime;
    /**
     * 是否删除
     */
    private Integer isDelete;

}